Branchwell

PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Geometric / Monster / xtramartin (55).milk

1MILKDROP_PRESET_VERSION=201
2PSVERSION=3
3PSVERSION_WARP=3
4PSVERSION_COMP=3
5[preset00]
6fRating=5.000000
7fGammaAdj=1.980
8fDecay=0.500
9fVideoEchoZoom=1.000
10fVideoEchoAlpha=0.500
11nVideoEchoOrientation=3
12nWaveMode=2
13bAdditiveWaves=1
14bWaveDots=0
15bWaveThick=1
16bModWaveAlphaByVolume=1
17bMaximizeWaveColor=0
18bTexWrap=1
19bDarkenCenter=0
20bRedBlueStereo=0
21bBrighten=0
22bDarken=1
23bSolarize=0
24bInvert=0
25fWaveAlpha=0.001
26fWaveScale=0.527
27fWaveSmoothing=0.450
28fWaveParam=0.000
29fModWaveAlphaStart=0.000
30fModWaveAlphaEnd=1.320
31fWarpAnimSpeed=1.459
32fWarpScale=2.007
33fZoomExponent=1.00000
34fShader=0.000
35zoom=0.99990
36rot=0.00000
37cx=0.500
38cy=0.500
39dx=0.00000
40dy=0.00000
41warp=0.01000
42sx=0.99990
43sy=1.00000
44wave_r=0.000
45wave_g=0.000
46wave_b=0.000
47wave_x=0.500
48wave_y=0.500
49ob_size=0.015
50ob_r=0.000
51ob_g=0.000
52ob_b=1.000
53ob_a=0.000
54ib_size=0.260
55ib_r=0.250
56ib_g=0.250
57ib_b=0.250
58ib_a=0.000
59nMotionVectorsX=64.000
60nMotionVectorsY=48.000
61mv_dx=0.000
62mv_dy=0.000
63mv_l=1.850
64mv_r=0.500
65mv_g=0.500
66mv_b=0.500
67mv_a=0.000
68b1n=0.000
69b2n=0.000
70b3n=0.000
71b1x=1.000
72b2x=0.300
73b3x=1.000
74b1ed=0.000
75wavecode_0_enabled=0
76wavecode_0_samples=282
77wavecode_0_sep=20
78wavecode_0_bSpectrum=0
79wavecode_0_bUseDots=1
80wavecode_0_bDrawThick=0
81wavecode_0_bAdditive=0
82wavecode_0_scaling=7.85800
83wavecode_0_smoothing=0.10000
84wavecode_0_r=1.000
85wavecode_0_g=0.000
86wavecode_0_b=0.000
87wavecode_0_a=0.600
88wave_0_init1=t1 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
89wave_0_init2=t2 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
90wave_0_init3=t3 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
91wave_0_init4=t4 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
92wave_0_init5=t5 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
93wave_0_init6=t6 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
94wave_0_init7=t7 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
95wave_0_init8=t8 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
96wave_0_init9=
97wave_0_per_frame1=t2 = t2 + bass_att;
98wave_0_per_point1=y = .5+.2*sin(time); x = 0.5;
99wavecode_1_enabled=0
100wavecode_1_samples=512
101wavecode_1_sep=0
102wavecode_1_bSpectrum=0
103wavecode_1_bUseDots=1
104wavecode_1_bDrawThick=1
105wavecode_1_bAdditive=0
106wavecode_1_scaling=0.89152
107wavecode_1_smoothing=0.82000
108wavecode_1_r=1.000
109wavecode_1_g=1.000
110wavecode_1_b=1.000
111wavecode_1_a=0.100
112wave_1_init1=t1 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
113wave_1_init2=t2 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
114wave_1_init3=t3 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
115wave_1_init4=t4 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
116wave_1_init5=t5 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
117wave_1_init6=t6 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
118wave_1_init7=t7 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
119wave_1_init8=t8 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
120wave_1_init9=
121wave_1_per_frame1=tm = time*.1;
122wave_1_per_frame2=t1 = t1*sin(tm*t4) + (1-t1)*sin(tm*t7);
123wave_1_per_frame3=t2 = t2*sin(tm*t5) + (1-t2)*sin(tm*t8);
124wave_1_per_frame4=t3 = t3*sin(tm*t6) + (1-t3)*sin(tm*1);
125wave_1_per_frame5=
126wave_1_per_frame6=tic = min(time - tin,1);
127wave_1_per_frame7=tin = time;
128wave_1_per_frame8=
129wave_1_per_frame9=tva = (tic*q1*.5);
130wave_1_per_frame10=tvb = (tic*q2*.5);
131wave_1_per_frame11=tvc = (tic*q3*.5);
132wave_1_per_frame12=
133wave_1_per_frame13=q1 = tva;
134wave_1_per_frame14=q2 = tvb;
135wave_1_per_frame15=q3 = tvc;
136wave_1_per_frame16=
137wave_1_per_frame17=sz = .5;
138wave_1_per_frame18=len = q4;
139wave_1_per_frame19=t4 = len;
140wave_1_per_point1=xi = rand(100)/100;
141wave_1_per_point2=yi = rand(100)/100;
142wave_1_per_point3=
143wave_1_per_point4=x = xi; y = yi;
144wave_1_per_point5=
145wave_1_per_point6=a = q21/15;
146wavecode_2_enabled=0
147wavecode_2_samples=512
148wavecode_2_sep=0
149wavecode_2_bSpectrum=0
150wavecode_2_bUseDots=0
151wavecode_2_bDrawThick=0
152wavecode_2_bAdditive=0
153wavecode_2_scaling=0.89152
154wavecode_2_smoothing=0.00000
155wavecode_2_r=0.500
156wavecode_2_g=0.000
157wavecode_2_b=0.500
158wavecode_2_a=1.000
159wave_2_init1=t1 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
160wave_2_init2=t2 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
161wave_2_init3=t3 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
162wave_2_init4=t4 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
163wave_2_init5=t5 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
164wave_2_init6=t6 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
165wave_2_init7=t7 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
166wave_2_init8=t8 = 1 + (rand(101)*.01 - rand(101)*.01)*.3;
167wave_2_init9=
168wave_2_per_frame1=tm = time*.1;
169wave_2_per_frame2=t1 = t1*sin(tm*t4) + (1-t1)*sin(tm*t7);
170wave_2_per_frame3=t2 = t2*sin(tm*t5) + (1-t2)*sin(tm*t8);
171wave_2_per_frame4=t3 = t3*sin(tm*t6) + (1-t3)*sin(tm*1);
172wave_2_per_frame5=
173wave_2_per_frame6=tic = min(time - tin,1);
174wave_2_per_frame7=tin = time;
175wave_2_per_frame8=
176wave_2_per_frame9=tva = (tic*q1*.5);
177wave_2_per_frame10=tvb = (tic*q2*.5);
178wave_2_per_frame11=tvc = (tic*q3*.5);
179wave_2_per_frame12=
180wave_2_per_frame13=q1 = tva;
181wave_2_per_frame14=q2 = tvb;
182wave_2_per_frame15=q3 = tvc;
183wave_2_per_frame16=
184wave_2_per_frame17=sz = .5;
185wave_2_per_frame18=len = 1;
186wave_2_per_frame19=t4 = len;
187wave_2_per_point1=x = .5+abs(sample-.5)*.1; y = .5 + .1*sample+value1*.1;
188wave_2_per_point2=
189wave_2_per_point3=x = .6 + .02*cos(sample*6.3)*(1+value1*4);
190wave_2_per_point4=y = .58 + .02*sin(sample*6.3)*(1+value1*4);
191wavecode_3_enabled=0
192wavecode_3_samples=512
193wavecode_3_sep=0
194wavecode_3_bSpectrum=1
195wavecode_3_bUseDots=1
196wavecode_3_bDrawThick=0
197wavecode_3_bAdditive=0
198wavecode_3_scaling=1.00000
199wavecode_3_smoothing=0.50000
200wavecode_3_r=1.000
201wavecode_3_g=1.000
202wavecode_3_b=1.000
203wavecode_3_a=1.000
204shapecode_0_enabled=1
205shapecode_0_sides=32
206shapecode_0_additive=1
207shapecode_0_thickOutline=0
208shapecode_0_textured=1
209shapecode_0_num_inst=1
210shapecode_0_x=0.500
211shapecode_0_y=0.660
212shapecode_0_rad=0.34546
213shapecode_0_ang=0.00000
214shapecode_0_tex_ang=1.50796
215shapecode_0_tex_zoom=0.61299
216shapecode_0_r=0.800
217shapecode_0_g=0.800
218shapecode_0_b=1.000
219shapecode_0_a=0.080
220shapecode_0_r2=0.000
221shapecode_0_g2=0.000
222shapecode_0_b2=0.000
223shapecode_0_a2=0.000
224shapecode_0_border_r=1.000
225shapecode_0_border_g=1.000
226shapecode_0_border_b=0.000
227shapecode_0_border_a=0.000
228shapecode_1_enabled=1
229shapecode_1_sides=16
230shapecode_1_additive=0
231shapecode_1_thickOutline=1
232shapecode_1_textured=0
233shapecode_1_num_inst=32
234shapecode_1_x=0.500
235shapecode_1_y=0.670
236shapecode_1_rad=0.02007
237shapecode_1_ang=0.00000
238shapecode_1_tex_ang=0.00000
239shapecode_1_tex_zoom=1.25486
240shapecode_1_r=0.700
241shapecode_1_g=0.000
242shapecode_1_b=0.000
243shapecode_1_a=0.500
244shapecode_1_r2=0.000
245shapecode_1_g2=0.000
246shapecode_1_b2=0.000
247shapecode_1_a2=0.000
248shapecode_1_border_r=0.300
249shapecode_1_border_g=0.700
250shapecode_1_border_b=0.800
251shapecode_1_border_a=0.000
252shape_1_per_frame1=//blood drooling
253shape_1_per_frame2=
254shape_1_per_frame3=// "random" values per instance
255shape_1_per_frame4=phase = sin(instance*3);
256shape_1_per_frame5=speed = 2+cos(instance*12);
257shape_1_per_frame6=x0 = .5 + .06*sin(instance*17);
258shape_1_per_frame7=
259shape_1_per_frame8=trel = (time-phase)*speed/16;
260shape_1_per_frame9=tinst = trel - int(trel);
261shape_1_per_frame10=
262shape_1_per_frame11=x = x0;
263shape_1_per_frame12=y = .5-q3 - tinst;
264shape_1_per_frame13=
265shape_1_per_frame14=a = min(sqrt(tinst)+.1,1);
266shape_1_per_frame15=a = a*q17;
267shapecode_2_enabled=0
268shapecode_2_sides=3
269shapecode_2_additive=0
270shapecode_2_thickOutline=0
271shapecode_2_textured=0
272shapecode_2_num_inst=6
273shapecode_2_x=0.503
274shapecode_2_y=0.370
275shapecode_2_rad=0.06391
276shapecode_2_ang=0.94248
277shapecode_2_tex_ang=0.00000
278shapecode_2_tex_zoom=9.18052
279shapecode_2_r=1.000
280shapecode_2_g=1.000
281shapecode_2_b=1.000
282shapecode_2_a=1.000
283shapecode_2_r2=1.000
284shapecode_2_g2=1.000
285shapecode_2_b2=1.000
286shapecode_2_a2=0.000
287shapecode_2_border_r=0.000
288shapecode_2_border_g=0.000
289shapecode_2_border_b=0.000
290shapecode_2_border_a=0.000
291shape_2_per_frame1=k1 = instance/num_inst-.5;
292shape_2_per_frame2=
293shape_2_per_frame3=x = .5 + k1/8;
294shape_2_per_frame4=
295shape_2_per_frame5=y = .4 + (k1)*0;
296shape_2_per_frame6=ang = 0;
297shape_2_per_frame7=a = .1; a2 = .0;
298shapecode_3_enabled=1
299shapecode_3_sides=9
300shapecode_3_additive=0
301shapecode_3_thickOutline=0
302shapecode_3_textured=0
303shapecode_3_num_inst=2
304shapecode_3_x=0.520
305shapecode_3_y=0.510
306shapecode_3_rad=0.01800
307shapecode_3_ang=0.00000
308shapecode_3_tex_ang=0.00000
309shapecode_3_tex_zoom=1.91509
310shapecode_3_r=0.000
311shapecode_3_g=0.000
312shapecode_3_b=0.000
313shapecode_3_a=1.000
314shapecode_3_r2=0.500
315shapecode_3_g2=0.000
316shapecode_3_b2=0.000
317shapecode_3_a2=0.000
318shapecode_3_border_r=0.200
319shapecode_3_border_g=0.700
320shapecode_3_border_b=0.500
321shapecode_3_border_a=0.000
322shape_3_per_frame1=x = .5 + (instance-.5)*.04;
323per_frame_init_1=crumple = 0;
324per_frame_init_2=mwidth = .5;
325per_frame_init_3=mshape = 0;
326per_frame_init_4=dist = 4;
327per_frame_init_5=dist_ = 4;
328per_frame_1=dec_med = pow (0.8, 30/fps);
329per_frame_2=dec_b = pow (0.9, 30/fps);
330per_frame_3=dec_slow = pow (0.9, 30/fps);
331per_frame_4=beat = max (max (bass, mid), treb);
332per_frame_5=avg = avg*dec_slow + beat*(1-dec_slow);
333per_frame_6=is_beat = above(beat, avg+peak) * above (time, t0+.1);
334per_frame_7=t0 = is_beat*time + (1-is_beat)*t0;
335per_frame_8=peak = is_beat * beat + (1-is_beat)*peak*dec_med;
336per_frame_9=index = (index + is_beat) %32;
337per_frame_10=index2 = (index2 + is_beat*bnot(index))%4;
338per_frame_11=
339per_frame_12=q20 = avg;
340per_frame_13=q21 = beat;
341per_frame_14=q22 = peak;
342per_frame_15=
343per_frame_16=q24 = is_beat;
344per_frame_17=q26 = bass_att + mid_att + treb_att;
345per_frame_18=q27 = index +1;
346per_frame_19=q28 = index2;
347per_frame_20=
348per_frame_21=light = light * dec_med + (1-dec_med)*q22;
349per_frame_22=light = min(light,3);
350per_frame_23=q15 = light/3;
351per_frame_24=
352per_frame_25=ph1 = below(q27,8);
353per_frame_26=ph2 = above(q27,8)*below(q27,16);
354per_frame_27=ph2a = above(q27,29); // open mouth
355per_frame_28=ph3 = above(q27,30);
356per_frame_29=
357per_frame_30=blend = above(q27,30)+below(q27,2);
358per_frame_31=blend_ = dec_b*blend_ + (1-dec_b)*blend;
359per_frame_32=q19 = blend_;
360per_frame_33=q18 = 1-blend_;
361per_frame_34=dist = if(ph1,3,dist);
362per_frame_35=dist = if(ph2,max(dist -1/fps,1.8),dist);
363per_frame_36=dist = if(ph3,max(dist - 8/fps,-1),dist);
364per_frame_37=dist_ = dist_ * dec_med + dist*(1-dec_med);
365per_frame_38=
366per_frame_39=q11 = dist_;//q11 = 2;
367per_frame_40=open = if(ph2a,open*dec_slow,4);
368per_frame_41=q16 = 4-open+q27/16+q15/2;
369per_frame_42=q17 = above(q27,16); //drool
370per_frame_43=
371per_frame_44=trel1 = trel1 + 1/fps * (1 + q15*2*((q27%2)-.5));
372per_frame_45=trel2 = trel2 + 1/fps * (1 + q15*2*((q27%4)-1.5));
373per_frame_46=px_ = sin(trel1)/5;
374per_frame_47=py_ = cos(trel2)/5-.1;
375per_frame_48=
376per_frame_49=px__ = dec_slow*px__ + px_ * (1-dec_slow);
377per_frame_50=py__ = dec_slow*py__ + py_ * (1-dec_slow);
378per_frame_51=
379per_frame_52=q5 = px_+.1*sin(time);
380per_frame_53=q6 = py_+.1*cos(2*time); //light pos
381per_frame_54=
382per_frame_55=q9 = px__*sqrt(dist_)/2; //head pos
383per_frame_56=q10 = py__*sqrt(dist_)/2;
384per_frame_57=
385per_frame_58=trig = equal(q27,31)*q24;
386per_frame_59=crumple = if(trig,rand(20)-5,crumple);
387per_frame_60=mwidth = if(trig,.2+rand(20)/20,mwidth);
388per_frame_61=mshape = if(trig, rand(20)/40,mshape);
389per_frame_62=
390per_frame_63=q1 = crumple;
391per_frame_64=q2 = mwidth;
392per_frame_65=q3 = .1; //y-pos mouth
393per_frame_66=q4 = mshape;
394per_frame_67=
395per_frame_68=monitor =q4;
396per_frame_69=
397warp_1=`sampler sampler_sampler_pw_noise_lq;
398warp_2=`float hole;
399warp_3=`float2 dz,uv1,uv2,uv3,uv4,uv6, mod;
400warp_4=`float3 blur, blur2, noise2, noise3;
401warp_5=`static float2 eyepos = float2(.1,-.1);
402warp_6=`static float eyerad = .02;
403warp_7=`static float mouth_y = q3;
404warp_8=`static float direct = 1;
405warp_9=`static float crumple = q1;
406warp_10=`static float mwidth = q2;
407warp_11=`static float mopen = q16;
408warp_12=`static float mshape= q4;
409warp_13=`static float dist = q11;
410warp_14=`shader_body {
411warp_15=`
412warp_16=`float3 blur = lum(GetBlur1(frac(uv)))*crumple;
413warp_17=`float2 hor = float2 (texsize.z,0)*8*blur;
414warp_18=`float2 ver = float2 (0,texsize.w)*8*blur;
415warp_19=`float dx = lum(tex2D(sampler_main,uv+hor) - tex2D(sampler_main,uv-hor));
416warp_20=`float dy = lum(tex2D(sampler_main,uv+ver) - tex2D(sampler_main,uv-ver));
417warp_21=`float2 dz = float2 (dx + (uv.x-.5)*.0,dy+.0);
418warp_22=`
419warp_23=`uv1 = float2 (abs(uv.x-.5),uv.y-.5);
420warp_24=`//uv1 = float2(8*uv1.x*uv1.x,uv1.y*uv1.y*8);
421warp_25=`
422warp_26=`float teeth = sin((uv1.x)*142+1.5*sign(uv1.y-mouth_y))-mopen*.008/abs(uv1.y-mouth_y);
423warp_27=`
424warp_28=`float eyes = saturate(eyerad/length(uv1-eyepos));
425warp_29=`eyes = pow(eyes,4);
426warp_30=`float mouth = saturate(.05/sqrt(uv1.x*uv1.x*mwidth + (.05/(.01+mshape*uv1.x))*(1+q15)/mopen*pow(uv1.y-mouth_y,2)));
427warp_31=`mouth = pow(mouth,3);
428warp_32=`mod = eyes + mouth*mopen;
429warp_33=`hole = pow(max(eyes,mouth),1);
430warp_34=`
431warp_35=`float3 eyeball = saturate(cos(1.4/eyerad*length(uv1-eyepos)))/3*(2-direct)*roam_sin*2;
432warp_36=`eyeball = eyeball - (length(uv1-eyepos-.02*float2(q9*0,q10-eyepos.y)) < .01*q15);
433warp_37=`
434warp_38=`noise3 = lum(tex2D(sampler_noise_lq,uv1))+.5;
435warp_39=`uv1 += mod/4;
436warp_40=`teeth *= (mouth);
437warp_41=`
438warp_42=`float2 ang2= tex2D (sampler_noise_hq,uv1/4+time/180).xy;
439warp_43=`//uv6 = mul(uv1,float2x2(ang2.y,-ang2.x,ang2.x,ang2.y));
440warp_44=`uv6 = uv1 + .5*(uv1*4*ang2);
441warp_45=`float mus = cos(uv6.y*18)+(sin(uv6.x*18));
442warp_46=`noise2 = abs(mus)/6*(1+abs(crumple/16))+.2;
443warp_47=`noise2 *= float3 (1,.9,.8);
444warp_48=`noise2 = lerp(noise2,teeth,mouth);
445warp_49=`noise2 = lerp(noise2,eyeball,eyes);
446warp_50=`blur2 = GetBlur2(frac(noise3));
447warp_51=`
448warp_52=`float3 crisp = GetPixel(frac(uv+dz*.003));
449warp_53=`//crisp = max(crisp, .8*float3(1,1,1)*GetPixel(uv*1+.3)*saturate(1-2*lum(GetPixel(uv+.31))));
450warp_54=`crisp += -0.0*blur2 - length(dz)*.1;
451warp_55=`
452warp_56=`
453warp_57=`ret = crisp * (.99-hole/2*direct) - .01 + noise2*(.045+hole*direct) ;
454warp_58=`//ret = hole;
455warp_59=`//ret = 1-eyes;
456warp_60=`//ret = tex2D (sampler_shub1,uv1);
457warp_61=`}
458comp_1=`float dx, dy, k1;
459comp_2=`float2 uv1, uv2, uv3, uv4, tmp;
460comp_3=`float3 noise, ret1, ret2, beast, bcopy;
461comp_4=`
462comp_5=`static float2 hor = float2 (texsize.z,0)*4;
463comp_6=`static float2 ver = float2 (0,texsize.w)*4;
464comp_7=`static float2 lightpos = float2(q5,q6);
465comp_8=`static float vis = q18;
466comp_9=`static float dist = q11;
467comp_10=`static float mouth_y = q3;
468comp_11=`
469comp_12=`float2 rs (float2 uv_in) {
470comp_13=`uv_in.x += q9;
471comp_14=`return uv_in*dist*(.4+clamp(abs(uv_in.x),-1/dist,1/dist)+4*q9*uv_in.x)-.5+float2(0,q10+mouth_y);}
472comp_15=`
473comp_16=`float2 rs2 (float2 uv_in) {
474comp_17=`uv_in.x += q9*.96 ;
475comp_18=`tmp = uv_in*1.1*dist*(.4+clamp(abs(uv_in.x),-1/dist,1/dist)+4*q9*uv_in.x)-.5+float2(0,q10*.96+mouth_y);
476comp_19=`return tmp;}
477comp_20=`
478comp_21=`
479comp_22=`float2 dz (float2 uv_in) {
480comp_23=` dx = lum(tex2D(sampler_main,uv_in+hor) - tex2D(sampler_main,uv_in-hor));
481comp_24=` dy = lum(tex2D(sampler_main,uv_in+ver) - tex2D(sampler_main,uv_in-ver));
482comp_25=` return float2 (dx+0*(lightpos.x),dy);}
483comp_26=`
484comp_27=`
485comp_28=`
486comp_29=`float2 uv_polar(float2 domain, float2 center){
487comp_30=` float2 c = domain - center;
488comp_31=` float rad_hq = length(c);
489comp_32=` float ang_hq = atan2(c.x,c.y);
490comp_33=` return float2(ang_hq, rad_hq);
491comp_34=`}
492comp_35=`
493comp_36=`float2 uv_lens_half_sphere(float2 domain, float2 position, float radius, float refractivity){
494comp_37=` float2 polar = uv_polar(domain, position);
495comp_38=` float cone = saturate(1-polar.y/radius);
496comp_39=` float halfsphere = sqrt(1-pow(cone-1,2));
497comp_40=` float w = atan2(1-cone,halfsphere);
498comp_41=` float refrac_w = w-asin(sin(w)/refractivity);
499comp_42=` float refrac_d = 1-cone - halfsphere*tan(refrac_w);
500comp_43=` float2 refrac_uv =position+float2(sin(polar.x),cos(polar.x))*refrac_d*radius;
501comp_44=` bool mask = cone>0;
502comp_45=` return !mask*domain + mask*refrac_uv;
503comp_46=`}
504comp_47=`
505comp_48=`shader_body
506comp_49=`{
507comp_50=`uv = uv_lens_half_sphere(uv, float2(0.5,0.5), 0.25, 1.7);
508comp_51=`uv = uv_lens_half_sphere(uv, 0.5, 1, 0.4+bass_att*0.0);
509comp_52=`float t = time*0.04; // set velocity here
510comp_53=`float2 c = (uv-0.5)*aspect.wz;
511comp_54=`float1 ang_hq = atan2(c.x,c.y);
512comp_55=`float2 spiral = float2(-ang_hq*M_INV_PI_2*2-t,aspect.w*log(length(c))*(.5+treb_att*0.015)+ang_hq*M_INV_PI_2*2-t*8);
513comp_56=`float2 mirror = 0.5 + (0.5 - abs( frac( spiral * 0.5 ) * 2.0 - 1.0 )); // mirror
514comp_57=`//uv = mirror;
515comp_58=`float2 uv4 = uv-.5+float2(q9,q10);
516comp_59=`
517comp_60=`
518comp_61=`float water = tex2D (sampler_noise_mq,uv/2+time/5);
519comp_62=`uv1 = (uv-.5)*aspect.xy + water *.0;
520comp_63=`uv3 = rs(uv1);
521comp_64=`float rad1 = saturate(.2/dist/length(uv1.x+q9));
522comp_65=`float rad2 = saturate(.05/dist/length(uv1+float2(q9,q10)));
523comp_66=`beast = tex2D (sampler_main, uv3)*rad1;
524comp_67=`bcopy = tex2D (sampler_main, rs2(uv1))*saturate(1-8*lum(beast))*rad2/2;;
525comp_68=`
526comp_69=`
527comp_70=`float light = 2*saturate(.05/length(uv1+lightpos+2*dz(uv3)));
528comp_71=`float flatlight = saturate ((1+q15)*.5/dist/length(uv1+lightpos));
529comp_72=`
530comp_73=`
531comp_74=`float2 uv5 = normalize(uv1+float2(.1,.1)+lightpos)*1+lightpos;
532comp_75=`float3 ray = saturate(GetPixel(rs(uv5)));
533comp_76=`
534comp_77=`//flatlight = 1;
535comp_78=`
536comp_79=`
537comp_80=`beast *= pow(flatlight,2)*.7;
538comp_81=`beast += lum(beast)*light*light *pow(flatlight,2) ;
539comp_82=`//beast = lerp(beast,.2*float3(.5,.5,1)*flatlight,4*abs(uv1.x));
540comp_83=`//beast = (q22/4+2*(.5-q22/4)*beast) *flatlight;
541comp_84=`ret = (beast+bcopy*flatlight);
542comp_85=`ret = lerp(saturate(flatlight*float3(q22,0,0)),ret, vis);
543comp_86=`
544comp_87=`//ret = tex2D (sampler_main,((uv-.5)*aspect.xy+.5));
545comp_88=`//ret = rad1;
546comp_89=`}